package com.tw.modules.entity;

import java.io.Serializable;

import com.baomidou.mybatisplus.enums.IdType;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author maxiaodong
 * @since 2018-04-07
 */
@TableName("tw_diary")
public class Diary extends Model<Diary> {

    private static final long serialVersionUID = 1L;

	@TableField("d_phone")
	private Long dPhone;
	@TableField("d_number")
	private Integer dNumber;
	@TableField("d_time")
	private Double dTime;
	@TableField("d_date")
	private String dDate;
	@TableId(value="d_id", type= IdType.AUTO)
	private Integer dId;


	public Long getdPhone() {
		return dPhone;
	}

	public void setdPhone(Long dPhone) {
		this.dPhone = dPhone;
	}

	public Integer getdNumber() {
		return dNumber;
	}

	public void setdNumber(Integer dNumber) {
		this.dNumber = dNumber;
	}

	public Double getdTime() {
		return dTime;
	}

	public void setdTime(Double dTime) {
		this.dTime = dTime;
	}

	public String getdDate() {
		return dDate;
	}

	public void setdDate(String dDate) {
		this.dDate = dDate;
	}

	public Integer getdId() {
		return dId;
	}

	public void setdId(Integer dId) {
		this.dId = dId;
	}

	@Override
	protected Serializable pkVal() {
		return this.dId;
	}

	@Override
	public String toString() {
		return "Diary{" +
			", dPhone=" + dPhone +
			", dNumber=" + dNumber +
			", dTime=" + dTime +
			", dDate=" + dDate +
			", dId=" + dId +
			"}";
	}
}
